import java.util.logging.Logger;

import lv.senan.algorithms.AlgorithmFactory;
import lv.senan.algorithms.turney.SemanticOrientationResult;

/**
 * Demonstrates implemented sentiment analysis engine.
 * 
 * @author Igors Gulbinskis
 */
public class Demo {
	
	private static Logger logger = Logger.getLogger(Demo.class.getName());
	
	public static void main(String[] args) {
		String line = "Šodien man iet ļoti labi.";
		SemanticOrientationResult so = AlgorithmFactory.getTurneyAlgorithm().getSemanticOrientation(line, false);
		logger.info("average semantic orientation = " + so.getEvaluation());
	}
	
}
